<@user.user_html title="更新头像">


    <div class="clear"></div>
	

    <div class="swarp">
		<#include "/WEB-INF/content/include/user/app.ftl">
        <div class="srightwarp">
        	<div class="xwarp" style=" margin:0px; width:750px; overflow:hidden;">

                <form id="saveForm" name="saveForm" action="${base}/user/avatar/index!upload" method="post" enctype ="multipart/form-data" >
                <div class="xbody sbody" style=" width:748px; margin:0px; padding:20px 0px;">
            		
                   
                    
                    <div class="module" style="width:680px; margin:0 auto; text-align:left; margin-bottom:15px;">
                       
                        <table class="module_tab xtab">
                           
                            <tr>
                                <th></th>
                                <td><span style="padding:5px; background-color:#fff000; color:#bb0000;">上传头像</span></td>
                            </tr>
                            <tr>
                                <th></th>
                                <td><label>
                                  <input  id="upload_1" type="file" name="upload" />
                                </label>
                                <span id="upload_1Tip" ></span>
                                </td>
                         	 </tr>
                            
                        </table>

                    </div>
                   
                     <div class="star_save"><input name="" type="submit" class="w" value="保 存"/></div>

            	</div>
				</form>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    


    <link type="text/css" rel="stylesheet" href="${statics}/scripts/jquery/formValidator3.3/style/validator.css"/>
	<script type="text/javascript" src="${statics}/scripts/jquery/formValidator3.3/formValidator_min.js" charset="UTF-8"></script>
	<script type="text/javascript" src="${statics}/scripts/jquery/formValidator3.3/formValidatorRegex.js"  charset="UTF-8"></script>
	<script type="text/javascript">
	$(document).ready(function(){
		$.formValidator.initConfig({formid:"saveForm",onerror:function(msg){},onsuccess:function(){return true;}});					
		$("#upload_1")
		.formValidator({onshow:"请上传头像jpg,jpeg格式",onfocus:"请上传头像",oncorrect:""})
		.inputValidator({min:1})
		.regexValidator({regexp:"avatar",datatype:"enum",onerror:"只可以上传jpg,jpeg格式"});
	});
	
</script>
</div>
</@user.user_html>


